package com.jrx.anytxn.reporting.job.xib.step;

import com.jrx.anytxn.customer.entity.CmCustomerFirstLevel;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisCursorItemReader;

import java.util.HashMap;

/**
 * @comment: 采用游标读取数据的方式获取一级客户数据表
 * @author: hsoong
 * @date: 2021/7/2 09:49
 */
public class CustomerFirstLevelItemReader extends MyBatisCursorItemReader<CmCustomerFirstLevel> {

    public CustomerFirstLevelItemReader(SqlSessionFactory sqlSessionFactory){
        setSqlSessionFactory(sqlSessionFactory);
        setSaveState(false);

        setQueryId("com.jrx.anytxn.customer.mapper.ext.ExtCmCustomerFirstLevelMapper.selectAllCust");
        setParameterValues(new HashMap<>());
    }

}
